<?php
/**
 * 公众号页面授权接口
 * @author lss
 * 2017-03-02
 */
namespace soa\mp;

use soa\client;

class ShortUrl  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//长连接转短连接
	public function index($url,$platform){
		return $this->post("api/ShortUrl/index",["url" => $url, "platform" => $platform,]);
	}
}